import { Icon } from '@alifd/next';

export type IconFontNames =
  | 'emojilight'
  | 'keyboardlight'
  | 'recordfill'
  | 'recordlight'
  | 'record'
  | 'roundaddlight'
  | 'soundlight'
  | 'cardboardfill'
  | 'cardboard'
  | 'formfill'
  | 'appreciate'
  | 'coin'
  | 'check'
  | 'sortlight'
  | 'close'
  | 'cardboardforbid'
  | 'edit'
  | 'circlefill'
  | 'emoji'
  | 'circle'
  | 'favorfill'
  | 'attentionforbid'
  | 'favor'
  | 'attentionforbidfill'
  | 'loading'
  | 'attentionfavorfill'
  | 'locationfill'
  | 'attentionfavor'
  | 'location'
  | 'piclight'
  | 'phone'
  | 'shoplight'
  | 'roundcheckfill'
  | 'voicelight'
  | 'roundcheck'
  | 'attentionfavorfill-copy'
  | 'roundclosefill'
  | 'full'
  | 'roundclose'
  | 'mail'
  | 'roundrightfill'
  | 'peoplelist'
  | 'roundright'
  | 'goodsnewfill'
  | 'search'
  | 'goodsnew'
  | 'taxi'
  | 'medalfill'
  | 'timefill'
  | 'medal'
  | 'time'
  | 'newsfill'
  | 'unfold'
  | 'newshotfill'
  | 'warnfill'
  | 'newshot'
  | 'warn'
  | 'news'
  | 'camerafill'
  | 'videofill'
  | 'camera'
  | 'video'
  | 'commentfill'
  | 'askfill'
  | 'comment'
  | 'ask'
  | 'likefill'
  | 'exit'
  | 'like'
  | 'skinfill'
  | 'notificationfill'
  | 'skin'
  | 'notification'
  | 'moneybagfill'
  | 'order'
  | 'usefullfill'
  | 'samefill'
  | 'usefull'
  | 'same'
  | 'moneybag'
  | 'deliver'
  | 'redpacket_fill'
  | 'evaluate'
  | 'subscription'
  | 'pay'
  | 'home_light'
  | 'send'
  | 'my_light'
  | 'shop'
  | 'community_light'
  | 'ticket'
  | 'cart_light'
  | 'wang'
  | 'we_light'
  | 'back'
  | 'home_fill_light'
  | 'cascades'
  | 'cart_fill_light'
  | 'discover'
  | 'community_fill_light'
  | 'list'
  | 'my_fill_light'
  | 'more'
  | 'we_fill_light'
  | 'scan'
  | 'skin_light'
  | 'settings'
  | 'search_light'
  | 'questionfill'
  | 'scan_light'
  | 'question'
  | 'people_list_light'
  | 'shopfill'
  | 'message_light'
  | 'form'
  | 'close_light'
  | 'wangfill'
  | 'add_light'
  | 'pic'
  | 'profile_light'
  | 'filter'
  | 'service_light'
  | 'footprint'
  | 'friend_add_light'
  | 'top'
  | 'edit_light'
  | 'pulldown'
  | 'camera_light'
  | 'pullup'
  | 'hot_light'
  | 'right'
  | 'refresh_light'
  | 'refresh'
  | 'back_light'
  | 'moreandroid'
  | 'share_light'
  | 'deletefill'
  | 'comment_light'
  | 'refund'
  | 'appreciate_light'
  | 'cart'
  | 'favor_light'
  | 'qrcode'
  | 'appreciate_fill_light'
  | 'remind'
  | 'comment_fill_light'
  | 'delete'
  | 'wang_light'
  | 'profile'
  | 'more_android_light'
  | 'home'
  | 'friend_light'
  | 'cartfill'
  | 'more_light'
  | 'discoverfill'
  | 'goods_favor_light'
  | 'homefill'
  | 'goods_new_fill_light'
  | 'message'
  | 'goods_new_light'
  | 'addressbook'
  | 'goods_light'
  | 'link'
  | 'medal_fill_light'
  | 'lock'
  | 'medal_light'
  | 'unlock'
  | 'news_fill_light'
  | 'vip'
  | 'news_hot_fill_light'
  | 'weibo'
  | 'news_hot_light'
  | 'activity'
  | 'news_light'
  | 'friendaddfill'
  | 'video_fill_light'
  | 'friendadd'
  | 'message_fill_light'
  | 'friendfamous'
  | 'form_light'
  | 'friend'
  | 'video_light'
  | 'goods'
  | 'search_list_light'
  | 'selection'
  | 'form_fill_light'
  | 'explore'
  | 'global_light'
  | 'present'
  | 'global'
  | 'squarecheckfill'
  | 'favor_fill_light'
  | 'square'
  | 'delete_light'
  | 'squarecheck'
  | 'back_android'
  | 'round'
  | 'back_android_light'
  | 'roundaddfill'
  | 'down_light'
  | 'roundadd'
  | 'round_close_light'
  | 'add'
  | 'round_close_fill_light'
  | 'notificationforbidfill'
  | 'expressman'
  | 'explorefill'
  | 'punch_light'
  | 'fold'
  | 'evaluate_fill'
  | 'game'
  | 'furniture'
  | 'redpacket'
  | 'dress'
  | 'selectionfill'
  | 'coffee'
  | 'similar'
  | 'sports'
  | 'appreciatefill'
  | 'group_light'
  | 'infofill'
  | 'location_light'
  | 'info'
  | 'attention_light'
  | 'tao'
  | 'group_fill_light'
  | 'mobiletao'
  | 'group_fill'
  | 'forwardfill'
  | 'play_forward_fill'
  | 'forward'
  | 'subscription_light'
  | 'rechargefill'
  | 'deliver_fill'
  | 'recharge'
  | 'notice_forbid_fill'
  | 'vipcard'
  | 'qr_code_light'
  | 'voice'
  | 'settings_light'
  | 'voicefill'
  | 'pick'
  | 'friendfavor'
  | 'form_favor_light'
  | 'wifi'
  | 'round_comment_light'
  | 'share'
  | 'phone_light'
  | 'wefill'
  | 'round_down_light'
  | 'we'
  | 'friend_settings_light'
  | 'lightauto'
  | 'change'
  | 'lightforbid'
  | 'round_list_light'
  | 'lightfill'
  | 'ticket_fill'
  | 'camerarotate'
  | 'round_friend_fill'
  | 'light'
  | 'round_crown_fill'
  | 'barcode'
  | 'round_link_fill'
  | 'flashlightclose'
  | 'round_light_fill'
  | 'flashlightopen'
  | 'round_favor_fill'
  | 'searchlist'
  | 'round_menu_fill'
  | 'service'
  | 'round_location_fill'
  | 'sort'
  | 'round_pay_fill'
  | '1212'
  | 'round_like_fill'
  | 'down'
  | 'round_people_fill'
  | 'mobile'
  | 'round_pay'
  | 'mobilefill'
  | 'round_rank_fill'
  | 'copy'
  | 'round_redpacket_fill'
  | 'countdownfill'
  | 'round_skin_fill'
  | 'countdown'
  | 'round_record_fill'
  | 'noticefill'
  | 'round_ticket_fill'
  | 'notice'
  | 'round_redpacket'
  | 'qiang'
  | 'round_text_fill'
  | 'upstagefill'
  | 'round_ticket'
  | 'upstage'
  | 'round_transfer_fill'
  | 'babyfill'
  | 'subtitle_block_light'
  | 'baby'
  | 'warn_light'
  | 'brandfill'
  | 'round_transfer'
  | 'brand'
  | 'vip_code_light'
  | 'choicenessfill'
  | 'subtitle_unblock_light'
  | 'choiceness'
  | 'round_shop_fill'
  | 'clothesfill'
  | 'oppose_fill_light'
  | 'clothes'
  | 'oppose_light'
  | 'creativefill'
  | 'living'
  | 'creative'
  | 'goods_hot_fill'
  | 'female'
  | 'ticket_money_fill'
  | 'keyboard'
  | 'arrow_left_fill'
  | 'male'
  | 'arrow_up_fill'
  | 'newfill'
  | 'xiaoheiqun'
  | 'new'
  | 'auction'
  | 'pullleft'
  | 'return'
  | 'pullright'
  | 'mall_light'
  | 'rankfill'
  | 'mall_fill_light'
  | 'rank'
  | 'broadcast_fill'
  | 'bad'
  | 'at'
  | 'cameraadd'
  | 'card_fill'
  | 'focus'
  | 'friendfill'
  | 'cameraaddfill'
  | 'apps'
  | 'paintfill'
  | 'paint'
  | 'picfill'
  | 'refresharrow'
  | 'markfill'
  | 'mark'
  | 'presentfill'
  | 'repeal'
  | 'album'
  | 'peoplefill'
  | 'people'
  | 'servicefill'
  | 'repair'
  | 'file'
  | 'repairfill'
  | 'taoxiaopu'
  | 'attentionfill'
  | 'attention'
  | 'commandfill'
  | 'command'
  | 'communityfill'
  | 'community'
  | 'read'
  | 'calendar'
  | 'cut'
  | 'magic'
  | 'backwardfill'
  | 'playfill'
  | 'stop'
  | 'tagfill'
  | 'tag'
  | 'group'
  | 'all'
  | 'backdelete'
  | 'hotfill'
  | 'hot'
  | 'post'
  | 'radiobox'
  | 'rounddown'
  | 'upload'
  | 'writefill'
  | 'write'
  | 'radioboxfill'
  | 'punch'
  | 'shake'
  | 'add1'
  | 'move'
  | 'safe'
  | 'qi'
  | 'ye'
  | 'activityfill'
  | 'crownfill'
  | 'crown'
  | 'goodsfill'
  | 'messagefill'
  | 'profilefill'
  | 'sound'
  | 'sponsorfill'
  | 'sponsor'
  | 'upblock'
  | 'weblock'
  | 'weunblock'
  | '1111'
  | 'my'
  | 'myfill'
  | 'emojifill'
  | 'emojiflashfill'
  | 'flashbuyfill-copy'
  | 'text'
  | 'goodsfavor'
  | 'musicfill'
  | 'musicforbidfill'
  | 'roundleftfill'
  | 'triangledownfill'
  | 'triangleupfill'
  | 'roundleftfill-copy'
  | 'pulldown1';

interface Props {
  type: IconFontNames;
  size?: number;
  style?: React.CSSProperties;
}

/**
 * 自定义图标
 * 具体图标查看 https://at.alicdn.com/t/project/3021999/3925fe6e-fc40-4834-a9f3-abf160c5c6ff.html?spm=a313x.7781069.1998910419.42
 */
const CIcon = Icon.createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_3021999_4jgj55y5iha.js',
});

function CustomIcon(props: Props) {
  return <CIcon {...props} />;
}

export default CustomIcon;
